package action.productsearch;

import java.util.ArrayList;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

import org.apache.struts2.ServletActionContext;

import service.SearchService;
import vo.CartVO;
import vo.MenuVO;
import vo.SellerVO;

public class SelectProductBySellerAction {
	
	private String member_id, msg;
	private SellerVO svo;
	private ArrayList<MenuVO> list;
	private SearchService service;
	
	public String getMember_id() {return member_id;}
	public void setMember_id(String memberId) {member_id = memberId;}
	public String getMsg() {return msg;}
	public void setMsg(String msg) {this.msg = msg;}
	public ArrayList<MenuVO> getList() {return list;}
	public void setList(ArrayList<MenuVO> list) {this.list = list;}
	public SearchService getService() {return service;}
	public void setService(SearchService service) {this.service = service;}
	public SellerVO getSvo() {return svo;}
	public void setSvo(SellerVO svo) {this.svo = svo;}
	
	public String execute() {
		svo = service.selectBySeller(member_id);
		list = service.selectByProduct(member_id);
		return "success";
	}
}